import { createApp } from "vue"
import App from "./App.vue"

// 导入格式化css的文件
import "normalize.css"
import "./assets/css/index.css"

// 引入路由
import router from "./router"
// 注册仓库
import registerStore from "./store"
import registerIcons from "./global/registry-icons"
// import { accountLogin } from "./service/login/login"
import mitt from "mitt"

const app = createApp(App)

// 挂载到全局
app.config.globalProperties.$mitt = mitt()

// 图标的全局注册
app.use(registerIcons)

app.use(registerStore)

app.use(router)

app.mount("#app")

// accountLogin({ account: "12345zsy", password: "123456" }).then((res) => {
//   console.log(res)
// })
